package com.smart.community.region.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 导入请求DTO
 * 
 * @author Wu.Liang
 * @since 2025-01-30
 */
@Data
@Schema(description = "导入请求DTO")
public class ImportRequest {

    @Schema(description = "文件ID", required = true)
    @NotBlank(message = "文件ID不能为空")
    private String fileId;

    @Schema(description = "社区ID", required = true)
    @NotNull(message = "社区ID不能为空")
    private Long communityId;

    @Schema(description = "是否跳过错误数据")
    private Boolean skipErrors = false;

    @Schema(description = "是否覆盖已存在数据")
    private Boolean overwrite = false;
}
